#!/bin/bash
HOME=/Users/jianweilin/Desktop

if [ -d $HOME ];then
  echo "on the directory => $HOME,now to check the file"
  if [ -e $HOME/file.sh ];then
     echo "$HOME/file.sh is exist"
  fi
  if [ -x $HOME/do.sh ];then
     echo "$HOME/do.sh can run"
  fi
fi
